#include "Vertex.h"

//////////////////////////////////////////////////
//Vertex
//////////////////////////////////////////////////

//------------------------------------------------

Vertex::Vertex(void)
: m_location(0.0f, 0.0f, 0.0f)
, m_normal(0.0f, 0.0f, 0.0f)
, m_texture_u(0.0f)
, m_texture_v(0.0f)
  {  
  }

//------------------------------------------------

Vertex::Vertex(D3DXVECTOR3 i_location, D3DXVECTOR3 i_normal, float i_texture_u, float i_texture_v)
: m_location(i_location)
, m_normal(i_normal)
, m_texture_u(i_texture_u)
, m_texture_v(i_texture_v)
  {
  }

//------------------------------------------------

Vertex::~Vertex(void)
  {
  }

//------------------------------------------------

D3DXVECTOR3 Vertex::GetLocation() const
  {
  return m_location;
  }

//------------------------------------------------

D3DXVECTOR3 Vertex::GetNormal() const
  {
  return m_normal;
  }

//------------------------------------------------

float Vertex::GetTextureU() const
  {
  return m_texture_u;
  }

//------------------------------------------------

float Vertex::GetTextureV() const
  {
  return m_texture_v;
  }

//------------------------------------------------

void Vertex::SetLocation(D3DXVECTOR3 i_location)
  {
  m_location = i_location;
  }

//------------------------------------------------

void Vertex::SetNormal(D3DXVECTOR3 i_normal)
  {
  m_normal = i_normal;
  }

//------------------------------------------------

void Vertex::SetTextureU(float i_texture_u)
  {
  m_texture_u = i_texture_u;
  }

//------------------------------------------------

void Vertex::SetTextureV(float i_texture_v)
  {
  m_texture_v = i_texture_v;
  }

//------------------------------------------------

//////////////////////////////////////////////////